Skip to content

Backport the OV7251 vdda supply mapping to 7.3 - #199

Open
beilusm wants to merge 1 commit into
linux-surface:v7.3-surface-develfrom
beilusm:sp7-ov7251-vdda
Open

beilusm wants to merge 1 commit into
linux-surface:v7.3-surface-develfrom
beilusm:sp7-ov7251-vdda

Conversation

@beilusm

@beilusm beilusm commented Nov 20, 2026 •

Copy link
Copy Markdown

Backport upstream commit 59cab094b8b5 to v7.3-surface-devel. It maps the firmware's OV7251 (INT347E) power-enable GPIO to the vdda supply requested by the sensor driver.

On a Surface Pro 7 (Ice Lake, IPU4P 8086:8a19) running Arch's 7.3.4-arch1-2-surface with Ruslan Bay's IPU4P RFC v2, the unpatched kernel exposes an unused INT3472:02-avdd regulator. The sensor falls back to a dummy vdda regulator and its first I²C write (software reset, register 0x0103) fails with -ETIMEDOUT. This is the same supply-name mismatch documented on the Surface Pro 7+ in the original commit.

The backport changes only the sensor GPIO map and preserves the original authorship. It builds against the Arch Surface 7.3.4 headers with W=1. The IPU4P receiver and IR streaming are tracked in the IPU4 discussion.

The backport and this report were prepared with Codex assistance.

Surface Pro 7 cold-boot validation: With this mapping applied to the running Arch Surface 7.3.4 INT3472 module, the regulator is registered as INT3472:02-vdda and i2c-INT347E:00-vdda attaches to it. The first I²C write completes and the sensor reports OV7251 revision 7 (1F) detected at address 0x60. All three sensors enumerate in libcamera. The older unpatched module failed at the first I²C write on the same machine.

With the IPU4P receiver fixes also loaded, OV7251 completed three 30-frame RAW captures at 640×480 through libcamera and delivered valid image data through PipeWire. The backport is the change that restores the sensor's I²C probe and power-on.

On IPU6 designs carrying an OV7251 IR sensor (ACPI HID INT347E) the INT3472
describes the sensor's single gated rail as a power-enable GPIO, which the
driver registers as a regulator with con_id "avdd". The ov7251 driver and its
DT bindings name the sensor supplies vdda, vddd and vdddo, so the lookup finds
nothing, the rail is never enabled, and probe fails on the first I2C access:

  int3472-discrete INT3472:02: avdd  \_SB.GPI0 pin 131 active-high
  ov7251 i2c-INT347E:00: supply vdda not found, using dummy regulator
  ov7251 i2c-INT347E:00: probe with driver ov7251 failed with error -121

Map the power-enable GPIO to con_id "vdda" for INT347E, the same way the
existing entries map it to "vdd" for the mt9m114 and to "vana" for the imx471.
The sensor's other two supplies keep falling back to the dummy regulator,
which is correct here: the firmware gates a single rail.

The table already has an INT347E entry mapping the reset GPIO to "enable",
added when the ov7251 was brought up on these machines; this is the same class
of firmware-vs-binding name mismatch for the remaining pin.

Tested on a Microsoft Surface Pro 7+ (Tiger Lake, IPU6): with this change the
IR sensor probes, the illuminator strobes, and the camera streams 640x480 at
30 fps through libcamera. The same failure was reproduced independently on a
second Pro 7+ running stock firmware and a distro kernel, with no out-of-tree
code, in [1].

Developed with the assistance of an AI tool (Claude) and verified on hardware.

Link: linux-surface/linux-surface#1702 [1]
Reviewed-by: Hans de Goede <johannes.goede@oss.qualcomm.com>
Signed-off-by: D. Manresa <dmanresa@gmail.com>
Tested-by: Jakob Berg Jespersen <dev@berg.pm>   # Surface Pro 7+, probe/power-on
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants